Skip to content

security: deny Apache web access to temp directory#795

Merged
anonymoususer72041 merged 2 commits into
opencats:masterfrom
anonymoususer72041:security/deny-temp-web-access
Jun 24, 2026
Merged

security: deny Apache web access to temp directory#795
anonymoususer72041 merged 2 commits into
opencats:masterfrom
anonymoususer72041:security/deny-temp-web-access

Conversation

@anonymoususer72041

Copy link
Copy Markdown
Contributor

Deny direct HTTP access to the temp directory for Apache deployments by adding a dedicated .htaccess file.

The root .htaccess disables directory indexes and sets security headers, but it does not prevent direct access to known files below temp/. This change mirrors the existing deny-by-default approach used for attachments/ and helps prevent temporary files from being served directly by Apache when AllowOverride is enabled.

The temp/empty placeholder is removed because the new versioned temp/.htaccess file now keeps the temp directory present in the repository. The .gitignore rules are updated so temporary files remain ignored while temp/.htaccess stays tracked.

@anonymoususer72041 anonymoususer72041 added the security Pull requests that address a security vulnerability label Jun 3, 2026
@anonymoususer72041 anonymoususer72041 assigned RussH and unassigned RussH Jun 3, 2026
@anonymoususer72041 anonymoususer72041 requested a review from RussH June 3, 2026 11:00
@anonymoususer72041 anonymoususer72041 added this to the 0.11.0 milestone Jun 24, 2026

@RussH RussH left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good security hardening.

@anonymoususer72041 anonymoususer72041 force-pushed the security/deny-temp-web-access branch from c98a7a2 to ab2c959 Compare June 24, 2026 13:04
@anonymoususer72041 anonymoususer72041 merged commit b336853 into opencats:master Jun 24, 2026
4 checks passed
@anonymoususer72041 anonymoususer72041 deleted the security/deny-temp-web-access branch June 24, 2026 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

security Pull requests that address a security vulnerability

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants